package gui;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextPane;

public class EndScreenM5Panel extends JPanel {

	JButton btnContinue;
	JPanel panelImage2;
	ImageIcon image2;
	JLabel imageHolder2;
	
	private JTextPane txtPaneTravelGroup;
	
	/**
	 * Create the panel.
	 */
	public EndScreenM5Panel() {
		setLayout(null);
		
		txtPaneTravelGroup = new JTextPane();
		txtPaneTravelGroup.setEditable(false);
		txtPaneTravelGroup.setBounds(10, 11, 284, 328);
		add(txtPaneTravelGroup);

		panelImage2 = new JPanel();
		image2 = new ImageIcon("src/oregonTrailStart.jpg");
		imageHolder2 = new JLabel(image2);
		panelImage2.setBounds(304, 11, 390, 328);
		panelImage2.add(imageHolder2);
		add(panelImage2);

		btnContinue = new JButton("Buy Supplies");

		btnContinue.setBounds(304, 350, 113, 31);
		add(btnContinue);
	}
	
	public JButton getContinueButton(){
		return btnContinue;
	}
	
	public void setTravelGroupPane(String text){
		txtPaneTravelGroup.setText(text);
	}
	
	public JTextPane getTravelGroupPane(){
		return txtPaneTravelGroup;
	}

}
